<template>
  <div class="OperationLog">
    <el-card>
      <h3><span class="tag"></span> 操作日志</h3>
      <div class="searchBox">
        <el-input
          style="width: 300px"
          clearable
          placeholder="请输入账号"
          v-model="account"
        >
          <template slot="prepend">账号：</template>
        </el-input>
        <el-button class="btn">搜索</el-button>
      </div>
      <el-table
        :data="tableData"
        style="width: 100%; margin-top: 10px"
        :header-cell-style="{ background: '#f5f7fa' }"
      >
        <!-- @selection-change="handleSelectionChange" -->
        <template slot="empty">
          <el-empty :image-size="200"></el-empty>
        </template>
        <!-- <el-table-column type="selection" width="55"> </el-table-column> -->
        <el-table-column prop="date" label="日志ID"> </el-table-column>
        <el-table-column prop="name" label="账号"> </el-table-column>
        <el-table-column prop="address" label="账号ID"> </el-table-column>
        <el-table-column prop="address" label="IP"> </el-table-column>
        <el-table-column prop="address" label="时间"> </el-table-column>
        <el-table-column prop="address" label="操作模块"> </el-table-column>
        <el-table-column prop="address" label="内容日志"> </el-table-column>
      </el-table>
      <pagination
        :total="total"
        :page.sync="page"
        :limit.sync="pageSize"
        @pagination="getList"
      />
    </el-card>
  </div>
</template>

<script>
import Pagination from "@/components/Pagination"; // 分页
export default {
  components: { Pagination },
  data() {
    return {
      account: "",
      tableData: [],
      total: 0,
      page: 1,
      pageSize: 10,
    };
  },
  methods: {
    getList() {},
  },
};
</script>

<style lang="less" scoped>
.OperationLog {
  padding: 20px;
  h3 {
    margin: 0 0;
    display: flex;
    align-items: center;
    .tag {
      display: inline-block;
      width: 5px;
      height: 18px;
      background-color: #7b94d8;
      margin-right: 10px;
    }
  }
  .searchBox {
    margin-top: 20px;
  }
}
</style>